package com.hopu.v1.service.admin.question.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hopu.v1.mapper.admin.question.QuestionsOptionsMapper;
import com.hopu.v1.pojo.question.QuestionsOptions;
import com.hopu.v1.service.admin.question.QuestionsOptionsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author YwaiX
 * @description 针对表【t_questions_banks(题库表，存储题库相关信息)】的数据库操作Service实现
 * @createDate 2024-09-26 15:20:06
 */
@Service
public class QuestionsOptionsServiceImpl extends ServiceImpl<QuestionsOptionsMapper, QuestionsOptions>
        implements QuestionsOptionsService {
    
    @Override
    public void insert(List<QuestionsOptions> options) {
        baseMapper.insert(options);
    }
    
    @Override
    public void updateQuestionById(List<QuestionsOptions> options) {
        baseMapper.updateById(options);
    }
    
    @Override
    public void deleteByIds(List<Integer> optionIds) {
        baseMapper.deleteByIds(optionIds);
    }
}




